<html>
    <head>
        <title></title>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <?php echo link_tag('bootstrap/css/estilo.css') ?>
        <?php echo link_tag('bootstrap/css/bootstrap.min.css') ?>
        <?php echo link_tag('bootstrap/css/layout.css') ?>
    </head>
    <body>
        <fieldset>
            <div class="body" id="container">
                <section id="buttonGroups">
                    <div class="page-header">
                        <h1>Generar Códigos de Tarjetas SIMERT</h1>
                    </div>
                    <div class="row">
                        <div class="span8">
                            <form method="POST" action="/simertweb/generar_numeros/guardar" class="form-horizontal">
                                <div class="modal-form">   
                                    <div class="control-group">
                                        <div class="alert alert-info">
                                            <b>Colocar números superiores a 6 cifras</b>
                                        </div>
                                        <label class="control-label">Semilla:</label>
                                        <div class="controls">                              
                                            <input name="semilla" type="text" class="input-medium search-query">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                            <button type="submit" class="btn btn-primary">Generar</button>                                         
                                        </div>

                                        <br>
                                        <br>
                                        <!--<div style= "height:100%; width:100%; overflow:scroll;">-->
                                        <label><B>LISTA DE NÚMEROS GENERADOS</B></label>
                                        <br>
                                        <table class="table" border=2 style=" overflow-y: scroll">  
                                            <tr>
                                                <td bgcolor="#CCCOCC"><center>ID</center></td>
                                            <td bgcolor="#CCCOCC"><center>SEMILLA</center></td>
                                            <td bgcolor="#CCCOCC"><center>CODIGO</center></td>
                                            </tr>

                                            <?php
                                            if (isset($numgenerados)) {
                                                foreach ($numgenerados as $fila) {
                                                    ?>
                                                    <tr>
                                                        <td> <?php echo $fila->idNum; ?> </td>
                                                        <td> <?php echo $fila->semilla; ?> </td>
                                                        <td> <?php echo $fila->codigo; ?> </td>
                                                    </tr>     

                                                <?php }
                                            }
                                            ?>
                                        </table>
                                        <!--</div>-->

                                        <div class="form-actions">
                                            <button type="submit" class="btn btn-primary">Exportar</button>
                                            <button class="btn">Cancelar</button>
                                        </div>
                                    </div> 
                            </div>
                        </form>
                    </div>
                </section>     
            </div>
        </fieldset>
    </body>
</html>
